<?xml version='1.0' encoding='UTF-8'?>

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:a="http://java.sun.com/jsf/composite/custom"
	template="../templates/template.xhtml">

	<ui:define name="metadata">
		<f:event type="preRenderView" listener="#{projectReportingPage.initReportingPage}" />
    </ui:define>
		
    <ui:define name="pageTitle">#{msg.proReportingTitle}</ui:define>
    
    <ui:define name="content">
		<p>#{msg.proReportingPresentation}</p>
	
		<div class="contenu-item">
	
		    <p:panel header="#{msg.proReportingEvolution}" toggleable="true" toggleSpeed="0"
			     styleClass="reportingPanel">
				<p:lineChart value="#{projectReportingPage.projectBeans}" var="projectBean" 
					     xfield="#{projectBean.project.name}">
				    <p:chartSeries label="#{msg.proReportingEvolutions}" value="#{projectBean.evolutionCount}" />
				    <p:chartSeries label="#{msg.proReportingDefect}" value="#{projectBean.defectCount}" />
				</p:lineChart>
		    </p:panel>
		</div>
    </ui:define>
	
</ui:composition>